﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PayMentDemo
{
    public class CreditCard : PaymentMethod
    {
        public override void ProcessPayment(decimal price)
        {
            Console.WriteLine($"使用信用卡支付：{price:c2}.");
        }
    }
}
